import { fromJS } from 'immutable'
import { actionTypes } from './index'
const defaultState = fromJS({
    loginStatus: false
})
export default (state = defaultState, action ) => {
    switch (action.type) {
        case actionTypes.CHANGE_LOGIN_STATUS:
            return state.set('loginStatus',action.data)
        default:
            return state;
    }
}